home *** CD-ROM | disk | FTP | other *** search
- Path: news.ahc.ameritech.com!datalytics!usenet
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Window w/o title bar
- Date: Wed, 20 Mar 1996 12:03:03 -0500
- Organization: Datalytics, Inc
- Message-ID: <31503A47.6F9@datalytics.com>
- References: <4ilp2c$hmg@tst.hk.super.net>
- NNTP-Posting-Host: 204.62.224.71
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Peter Alexander Schindler wrote:
- >
- > Does anyone know how I can use the RegisterClass() & CreateWindow()
- > functions to create a window without title bar in MSVC++?
- >
- > Thanks in adv.
- >
- > Rgds,
- > Winnie Wan
-
- Here's how we do it in the Create mf of the main CWnd-derived
- class in one of our apps:
-
- if (CWnd::CreateEx(
- 0, // No styles
- 0, // No specific class
- "App Title", // Window title for task list and such
- WS_VISIBLE | WS_POPUP,
- (GetSystemMetrics(SM_CXSCREEN) - m_Width) / 2,// x
- (GetSystemMetrics(SM_CYSCREEN) - m_Height) /2,// y
- m_Width,
- m_Height,
- 0, // No menu
- 0)) // No LParam
- {
- .
- .
- .
- }
- --
- Robert Stewart | My opinions are usually my own.
- Datalytics, Inc. | stew@datalytics.com
-